/**
 * Copyright (C)  2011  chen wei hua.
 * Permission is granted to copy, distribute and/or modify this document
 * under the terms of the GNU Free Documentation License, Version 2.0
 * or any later version published by the Free Software Foundation;
 * with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.
 * A copy of the license is included in the section entitled "GNU Free Documentation License".
 */
package com.javaeye.procurement.dao;

import com.javaeye.common.dao.PageDAO;
import com.javaeye.procurement.dto.MaterialsReceiveOrder;

public interface MaterialsReceiveOrderDAO extends PageDAO {
	
	public MaterialsReceiveOrder getMaterialsReceiveOrder(String orderId);
	
	public void saveMaterialsReceiveOrder(MaterialsReceiveOrder order);
	
	public int getMaxOrderId(String orderIdSuff);
	
	/**
	 * 删除收货单
	 * @param orderId
	 */
	public void removeReceiveOrder(String orderId);
	
	/**
	 * 根据采购订单返回对应的收货单数
	 * @param supplierOrderId
	 * @return
	 */
	public long getMaterialsReceiveOrderCount(String supplierOrderId);
}
